package com.yunhuakeji.wddx.control;

import java.io.InputStream;

import com.yunhuakeji.wddx.impl.IMTargetSquare;
import com.yunhuakeji.wddx.service.TargetSquareService;
import com.yunhuakeji.wddx.utils.ResultUtil;

public class MBGCController extends ActionTicketSupport
{
	private static final long serialVersionUID = 1L;
	private InputStream inputStream;
	private String callback, cxtj, pageSize, pagenum, s_id, content,a_id,state,time,com_id,describe;
	
	public MBGCController() throws Exception
	{
		super();
	}

	public String getShareTime()
	{
		inputStream = new ResultUtil().resultString(callback, new IMTargetSquare().getShareTime(this.getUserid()));
		return SUCCESS;
	}
	
	public String getShareInfo()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getShareInfoWithPc(this.getUserid(), cxtj, pageSize, pagenum, this.getTicket()));
		
		return SUCCESS;
	}
	
	public String getShareInfoApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getShareInfoWithApp(this.getUserid(), cxtj, pageSize, pagenum, this.getTicket()));
		return SUCCESS;
	}
	
	public String comment()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().commentWithPc(this.getUserid(),  this.getTicket(), s_id, content));
		return SUCCESS;
	}
	
	public String commentApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().commentWithApp(this.getUserid(),  this.getTicket(), s_id, content));
		return SUCCESS;
	}
	public String answer()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().answerWithPc(this.getUserid(), this.getTicket(), a_id, s_id, content));
		
		return SUCCESS;
	}
	public String answerApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().answerWithApp(this.getUserid(), this.getTicket(), a_id, s_id, content));
		return SUCCESS;
	}
	
	
	
	public String getComment()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getCommentWithPc(this.getUserid(), s_id, this.getTicket()));
		return SUCCESS;
	}
	public String getCommentApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getCommentWithApp(this.getUserid(), s_id, this.getTicket()));
		return SUCCESS;
	}
	
	
	
	public String thumbsUpShare()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().thumbsUpShareWithPc(this.getUserid(), s_id, state, this.getTicket()));
		return SUCCESS;
	}
	
	public String thumbsUpShareApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().thumbsUpShareWithApp(this.getUserid(), s_id, state, this.getTicket()));
		return SUCCESS;
	}
	
	public String getThumbsUp()
	{
//		inputStream = new ResultUtil().resultString(callback, new IMTargetSquare().getThumbsUp(this.getUserid(), s_id,this.getTicket()));
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getThumbsUpWithPc(this.getUserid(), s_id, this.getTicket()));
		return SUCCESS;
	};
	
	public String getThumbsUpApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getThumbsUpWithApp(this.getUserid(), s_id, this.getTicket()));
		return SUCCESS;
	};
	
	public String getHotTarget()
	{
		inputStream = new ResultUtil().resultString(callback, new IMTargetSquare().getHotTarget(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}
	
	public String getMostFollow()
	{
		inputStream = new ResultUtil().resultString(callback, new IMTargetSquare().getMostFollow(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}
	
	public String getMyShare()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getMyShareWithPc(this.getUserid(), this.getTicket(), cxtj, time, pageSize, pagenum));
		return SUCCESS;
	}
	
	public String getMyShareApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getMyShareWithApp(this.getUserid(), this.getTicket(), cxtj, time, pageSize, pagenum));
		
		return SUCCESS;
	}
	
	public String getShareNumber()
	{
//		inputStream = new ResultUtil().resultString(callback, new IMTargetSquare().getShareNumber(this.getUserid(),this.getTicket()));
		
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getShareNumberWithPc(this.getUserid(),this.getTicket()));
		
		return SUCCESS;
	}
	
	public String getShareNumberApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().getShareNumberWithApp(this.getUserid(),this.getTicket()));
		
		return SUCCESS;
	}
	
	public String deleteComments()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().deleteCommentsWithPc(this.getUserid(), this.getTicket(), s_id, com_id));
		return SUCCESS;
	}
	
	public String deleteCommentsApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().deleteCommentsWithApp(this.getUserid(), this.getTicket(), s_id, com_id));
		return SUCCESS;
	}
	
	public String deleteReply()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().deleteReplyWithPc(this.getUserid(), this.getTicket(), s_id, com_id, a_id));
		return SUCCESS;
	}
	
	public String deleteReplyApp()
	{
		inputStream = new ResultUtil().resultString(callback, new TargetSquareService().deleteReplyWithApp(this.getUserid(), this.getTicket(), s_id, com_id, a_id));
		return SUCCESS;
	}
	
	public String whistle_blowing()
	{
		inputStream = new ResultUtil().resultString(callback, new IMTargetSquare().whistle_blowing(this.getUserid(), s_id, content, describe,this.getTicket()));
		return SUCCESS;
	}
	
	public InputStream getInputStream()
	{
		return inputStream;
	}

	public void setInputStream(InputStream inputStream)
	{
		this.inputStream = inputStream;
	}

	public String getCallback()
	{
		return callback;
	}

	public void setCallback(String callback)
	{
		this.callback = callback;
	}

	public String getCxtj()
	{
		return cxtj;
	}

	public void setCxtj(String cxtj)
	{
		this.cxtj = cxtj;
	}

	public String getPageSize()
	{
		return pageSize;
	}

	public void setPageSize(String pageSize)
	{
		this.pageSize = pageSize;
	}

	public String getPagenum()
	{
		return pagenum;
	}

	public void setPagenum(String pagenum)
	{
		this.pagenum = pagenum;
	}

	public String getS_id()
	{
		return s_id;
	}

	public void setS_id(String s_id)
	{
		this.s_id = s_id;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

	public String getA_id()
	{
		return a_id;
	}

	public void setA_id(String a_id)
	{
		this.a_id = a_id;
	}

	public String getState()
	{
		return state;
	}

	public void setState(String state)
	{
		this.state = state;
	}

	public String getTime()
	{
		return time;
	}

	public void setTime(String time)
	{
		this.time = time;
	}

	public String getCom_id()
	{
		return com_id;
	}

	public void setCom_id(String com_id)
	{
		this.com_id = com_id;
	}

	public String getDescribe()
	{
		return describe;
	}

	public void setDescribe(String describe)
	{
		this.describe = describe;
	}

}
